<!DOCTYPE html>
<html lang="en">

<head>
  @@include('./meta.html',{})
</head>

<body class="app-component">
  @@include('./header.html',{
  "components": "active"
  })
  <div class="component-wrapper">
    <div class="component-navleft">
      @@include('./navleft.html',{
      "tab_util": "active"
      })
    </div><!-- component-navleft -->

    <div class="component-sidebar">
      @@include('./sidebar.html',{
      "tab_util": "active",
      "util_margin": "active",
      "urlPrefix": "."
      })
    </div><!-- component-sidebar -->

      <div class="component-content">
        <div class="component-content-header">
          <nav aria-label="breadcrumb">
            <ol class="breadcrumb breadcrumb-style1 mg-b-0">
              <li class="breadcrumb-item"><a href="#">Components</a></li>
              <li class="breadcrumb-item"><a href="#">Utilities</a></li>
              <li class="breadcrumb-item active" aria-current="page">Margin</li>
            </ol>
          </nav>
          <a href="javascript:;" id="componentOptions" class="text-secondary mg-l-auto d-xl-none"><i data-feather="more-horizontal"></i></a>
        </div><!-- component-content-header -->

        <div class="component-content-body" data-spy="scroll" data-target="#navSection" data-offset="120">
          <div class="content content-components">
            <div class="container">
              
              <h1 class="td-title">Margin</h1>
        <p class="td-lead">Use margin utilities to quickly style the margin of an element. Great for cards, buttons, or any other element.</p>

        <hr class="mg-y-40">

        <h4 id="section1" class="mg-b-10">Set a Margin</h4>
        <p class="mg-b-30">You can set a margin to an element instantly by using the following utilities classes.</p>

        <div data-label="Example" class="td-example">
          <div class="d-flex">
            <div class="wd-150 ht-80 bg-gray-400"></div>
            <div class="d-flex align-items-center justify-content-center wd-150 ht-80 bg-gray-400 mg-l-20">.mg-l-20</div>
            <div class="d-flex align-items-center justify-content-center wd-150 ht-80 bg-gray-400 mg-l-40">.mg-l-40</div>
          </div>
        </div><!-- td-example -->
        <pre><code class="language-html">&lt;div class=&quot;wd-150 ht-80 bg-gray-400&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;wd-150 ht-80 bg-gray-400 mg-l-20&quot;&gt;.mg-l-20&lt;/div&gt;
&lt;div class=&quot;wd-150 ht-80 bg-gray-400 mg-l-40&quot;&gt;.mg-l-40&lt;/div&gt;</code></pre>

        <div class="table-responsive mg-t-25">
          <table class="table table-components">
            <thead>
              <tr>
                <th class="wd-30p">Smaller Margin</th>
                <th class="wd-70p">Value</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td>
                  .mg-t-[value]<br>
                  .mg-r-[value]<br>
                  .mg-b-[value]<br>
                  .mg-l-[value]
                </td>
                <td>1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10</td>
              </tr>
            </tbody>
          </table>
        </div><!-- table-responsive -->

        <div class="table-responsive">
          <table class="table table-components">
            <thead>
              <tr>
                <th class="wd-30p">Bigger Margin</th>
                <th class="wd-70p">Value</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td>
                  .mg-t-[value]<br>
                  .mg-r-[value]<br>
                  .mg-b-[value]<br>
                  .mg-l-[value]
                </td>
                <td>15 | 20 | 25 | 30 | ... | 120 &nbsp; (step of 5)</td>
              </tr>
            </tbody>
          </table>
        </div><!-- table-responsive -->

        <hr class="mg-y-40">

        <h4 id="section2" class="mg-b-10">Media Query Margin</h4>
        <p class="mg-b-30">You can also set a margin to a different media query using the following utilities classes.</p>

        <div class="table-responsive mg-t-25">
          <table class="table table-components">
            <thead>
              <tr>
                <th class="wd-30p">Class</th>
                <th class="wd-70p">Value</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td>
                  .mg-[breakpoint]-t-[value]<br>
                  .mg-[breakpoint]-r-[value]<br>
                  .mg-[breakpoint]-b-[value]<br>
                  .mg-[breakpoint]-l-[value]
                </td>
                <td>
                  <p class="mg-b-5">breakpoint: xs | sm | md | lg | xl</p>
                  <p class="mg-b-0">value: the margin value (refer to code above)</p>
                </td>
              </tr>
            </tbody>
          </table>
        </div><!-- table-responsive -->

        <hr class="mg-y-40">

        <h4 id="section3" class="mg-b-10">Auto Margin</h4>
        <p class="mg-b-30">You can also set a margin to a different media query using the following utilities classes.</p>

        <div class="table-responsive mg-t-25">
          <table class="table table-components">
            <thead>
              <tr>
                <th class="wd-30p">Class</th>
                <th class="wd-70p">Value</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td>.mg-t-auto</td>
                <td>Set a top margin to auto</td>
              </tr>
              <tr>
                <td>.mg-r-auto</td>
                <td>Set a right margin to auto</td>
              </tr>
              <tr>
                <td>.mg-b-auto</td>
                <td>Set a bottom margin to auto</td>
              </tr>
              <tr>
                <td>.mg-l-auto</td>
                <td>Set a left margin to auto</td>
              </tr>
            </tbody>
          </table>
        </div><!-- table-responsive -->
        @@include('./footer.html',{})

            </div>
          </div>
        </div><!-- component-content-body -->

        <div class="component-content-sidebar section-nav">
          <label class="tx-10 tx-medium tx-spacing-1 tx-color-03 tx-uppercase tx-sans mg-b-15">On This Page</label>
          <nav id="navSection" class="nav flex-column">
            <a href="#section1" class="nav-link">Set a Margin</a>
            <a href="#section2" class="nav-link">Media Query Margin</a>
            <a href="#section3" class="nav-link">Auto Margin</a>
          </nav>
        </div><!-- component-content-sidebar -->
      </div><!-- component-content -->

    </div><!-- component-wrapper -->

    @@include('./_script.html',{})
    <script>
      $(function(){
        'use strict'
      });
    </script>
  </body>
</html>
